        <!-- banner start -->
        <div class="banner">
            <div class="banner-title">
                <h2><?=$moudle_name ?></h2>
                <!-- <p><code>table.table</code> / 将它放在卡片的主容器<code>.card-body</code>里面</p> -->
            </div>
            <div class="banner-action">
                <!-- <fieldset class="form-group">
                    <select class="select">
                        <option>选项一</option>
                        <option>选项二</option>
                    </select>
                </fieldset> -->
                <!-- form start -->
                <form class="form" action="<?php echo base_url();?>/admin/account/index" method="get">
                    <fieldset class="form-group">
                        <input class="input" type="text" placeholder="账户名" name="account" value="<?=$search['account']; ?>">
                    </fieldset>
                    <button type="submit" class="button">搜索</button>
                    <a href="<?php echo site_url().'admin/account/edit'; ?>" class="button  button-green button-collapse">新增</a>
                </form>
                <!-- form over -->
            </div>
        </div>
        <!-- banner over -->
        <!-- collapse start -->
        <div class="collapse" id="demo-search">
            <div class="collapse-body">
                <!-- form start -->
                <form class="form">
                    <!-- row start -->
                    <div class="form-row">
                        <div class="col-lg-3">
                            <fieldset class="form-group">
                                <legend class="label">表单组件</legend>
                                <input class="input" type="text">
                            </fieldset>
                        </div>
                        <div class="col-lg-3">
                            <fieldset class="form-group">
                                <legend class="label">表单组件</legend>
                                <input class="input" type="text">
                            </fieldset>
                        </div>
                        <div class="col-lg-3">
                            <fieldset class="form-group">
                                <legend class="label">表单组件</legend>
                                <input class="input" type="text">
                            </fieldset>
                        </div>
                        <div class="col-lg-3">
                            <fieldset class="form-group">
                                <legend class="label">表单组件</legend>
                                <input class="input" type="text">
                            </fieldset>
                        </div>
                    </div>
                    <!-- row over -->
                    <div class="form-footer">
                        <p>检索完成, 共找到10条数据</p>
                        <div class="button-group">
                            <button type="button" class="button button-flat" data-toggle="collapse" data-target="#demo-search">关闭</button>
                            <button type="reset" class="button button-cyan">重置</button>
                            <button type="button" class="button button-green">开始检索</button>
                        </div>
                    </div>
                </form>
                <!-- form over -->
            </div>
        </div>
        <!-- collapse over -->
        <!-- container start -->
        <div class="container-fluid">
            <!-- row start -->
            <div class="row">
                <!-- column start -->
                <div class="col-12">
                    <section class="card">
                        <div class="card-header">
                            <h3 class="title"><?=$table_name ?></h3>
                            <div class="card-header-action">
                                <!-- <fieldset class="form-group">
                                    <select class="select">
                                        <option>选项一</option>
                                        <option>选项二</option>
                                    </select>
                                </fieldset> -->
                                <!-- <form action="<?php echo base_url();?>/admin/account/index" method="get">                              
                                    <fieldset class="form-group">
                                        <input class="input" type="text" placeholder="账户名" name="account" value="<?=$search['account']; ?>">
                                    </fieldset>
                                    <button type="submit" class="button button-small">搜索</button>
                                </form> -->
                                </div>
                        </div>
                        <div class="card-table">
                            <!-- table start -->
                            <table class="table table-responsive">
                                <thead>
                                    <tr>
                                        <th align="left">编号</th>
                                        <th align="left">
                                            <fieldset class="form-group">
                                                <label class="radiocheckbox-item">
                                                    <input class="radiocheckbox checkAll" type="checkbox" action="checkall" hidden>
                                                    <span class="radiocheckbox-replace"></span>
                                                </label>
                                            </fieldset>
                                        </th>
                                        <th align="left">账户名</th>
                                        <th align="left">账户密码</th>
                                        <!-- <th align="left">字段</th>
                                        <th align="left">标签</th> -->
                                        <th align="right">相关操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php foreach ($list as $item):
									?>
                                    <tr>
                                        <td align="left">#<?php echo $item['id'];?></td>
                                        <td align="center">
                                            <fieldset class="form-group">
                                                <label class="radiocheckbox-item">
                                                    <input onclick="clickOne()" class="radiocheckbox checkOne" type="checkbox" name="checkIds" id="<?php echo $item['id'];?>" value="<?php echo $item['id'];?>"  hidden>
                                                    <span class="radiocheckbox-replace"></span>
                                                </label>
                                            </fieldset>
                                        </td>
                                        <!-- <td>
                                            <div class="image" style="background-image: url('<?php echo base_url();?>media/zhiyeAdmin/img/avatar-zhouzhengrui.jpg');">
                                            </div>
                                        </td> -->
                                        <td>
                                            <!-- <h6>周正锐</h6> -->
                                            <p class="gray"><?php echo $item['account'];?></p>
                                        </td>
                                        <td><?php echo $item['account_password'];?></td>
                                        <!-- <td><span class="label label-blue">前端攻城师</span></td> -->
                                        <td align="right">
                                            <a href="<?php echo site_url().'admin/account/edit/'; ?><?=$item['id']?>" class="button button-small">编辑</a>
                                            <a href="#" class="button button-small button-red" onclick="deleteOne('<?php echo $item['id'];?>');">删除</a>                                            
                                        </td>
                                    </tr>
                                    <?php endforeach;?>

                                </tbody>
                            </table>
                            <!-- table over -->
                        </div>
                        <div class="card-footer">
                            <div class="button-group">
                                <!-- <button type="button" class="button" id='allcheck'>全选</button> -->
                                <button type="button" class="button button-red" id="deleteIds">删除</button>
                            </div>
                            <!-- <iframe frameborder=0 border=0 width=300 height=300 src="<?php echo base_url();?>application/view/trade_admin/include/page.php" mce_src="<?php echo base_url();?>application/view/trade_admin/include/page.php"></iframe> -->
                            <!-- #include virtual="<?php echo base_url();?>application/view/trade_admin/include/page.php" -->
                            
                            <!-- pagination start -->
                            <div class="button-group-pagination">
                                <span class="info">共<?php echo $total_num;  ?>条数据</span>
                                <?php echo $pages;?>
                                <!-- <span>上一页</span>
                                <span class="active">1</span>
                                <a href="#">2</a>
                                <a href="#">3</a>
                                <a href="#">4</a>
                                <a href="#">5</a>
                                <span>...</span>
                                <a href="#">99</a>
                                <a href="#">下一页</a> -->
                            </div>
                            <!-- pagination over -->
                        </div>
                    </section>
                </div>
                <!-- column over -->
            </div>
            <!-- row over -->
            
        </div>
        <!-- container over -->
        <!-- modal start -->
        
        <div class="modal fade" id="demo-1">
            <div class="modal-dialog modal-small">
                <!-- card start -->
                <section class="card">
                    <div class="card-header">
                        <h4 class="title">删除数据<small></small></h4>
                    </div>
                    <div class="card-body">
                        <p>确定要删除选中数据嘛？</p>
                    </div>
                    <div class="card-footer">
                        <button type="button" class="button button-small" id="deleteAll">确定</button>
                        <button type="button" class="button button-small button-flat" data-dismiss="modal">关闭</button>
                    </div>
                </section>
                <!-- card over -->
            </div>
        </div>
        <div class="modal fade" id="demo-3">
            <div class="modal-dialog modal-small">
                <!-- card start -->
                <section class="card">
                    <div class="card-header">
                        <h4 class="title">删除数据<small></small></h4>
                    </div>
                    <div class="card-body">
                        <p>请选择要删除的数据！</p>
                    </div>
                    <div class="card-footer">
                        <button type="button" class="button button-small" data-dismiss="modal">确定</button>
                        <button type="button" class="button button-small button-flat" data-dismiss="modal">关闭</button>
                    </div>
                </section>
                <!-- card over -->
            </div>
        </div>
        <!-- modal over -->

        <!-- page script start -->
        <script type="text/javascript">
        $("#deleteIds").click(function(){
            var checkIds='';
            $.each($('input:checkbox'),function(){
                if(this.checked){
                    if($(this).val()!="on"){
                        checkIds=checkIds+$(this).val()+",";
                    }
                }
            });
            if(checkIds==""){
                $("#demo-3").modal("show");
            }else{
                $("#demo-1").modal("show");
            }
        });
        $("#deleteAll").click(function(){
            var checkIds='';
            $.each($('input:checkbox'),function(){
                if(this.checked){
                    if($(this).val()!="on"){
                        checkIds=checkIds+$(this).val()+",";
                    }
                }
            });
            //alert(checkIds);
            window.location.href="<?php echo site_url().'admin/account/delete?checkIds='; ?>"+checkIds;
        });
        function deleteOne(id){
            $("#demo-1").modal("show");
            $("#"+id).attr("checked", "checked");
        };
        $("#allcheck").click(function(){
            $(":checkbox").each(function () {
                if ($(this).attr("checked") == "checked") {
                    $(this).removeAttr("checked");
                }
                else {
                    $(this).attr("checked", "checked");
                }
            });
        });
        function clickOne(){
            var allChecked = true;
            $(".checkOne").each(function(){
                if($(this).prop("checked") == false){
                    allChecked = false;
                };
            });
            if(allChecked){
                $(".checkAll").prop("checked",true);
            } else {
                $(".checkAll").prop("checked",false);
            }
        }
            jQuery(document).ready(function($) {
                // 全选
                $('[action="checkall"]').on('click', function() {
                    if (this.checked) {
                        $('tbody [type="checkbox"]').prop('checked', true);
                    } else {
                        $('tbody [type="checkbox"]').prop('checked', false);
                    }
                });
            });
        </script>
        <!-- page script over -->